---
title: Learn X in Y minutes
layout: home
---
%h1 Learn X in Y minutes

.lang-choice
  %label(for="lang-select") Highlight your language:
  %select#lang-select(name="lang-select")
    %option(value="en") en-us
    - articles.articles.select{|a| a.category != 'meta' and not a.name.nil? and a.translations}.flat_map{|a| a.translations}.flat_map{|t| t.language}.uniq.sort.each do |t|
      %option{:value => t}= t
%br
.theme-choice
  %label{:id => "theme-label"} Select theme:
  %button{:type => "button", "aria-labelledby" => "theme-label", :onclick => "set_theme('light');"} light
  %button{:type => "button", "aria-labelledby" => "theme-label", :onclick => "set_theme('dark');"} dark

%p Take a whirlwind tour of your next favorite language. Community-driven!

// Sorry
- articles.articles_by_category_en.keys.sort.each do |c|
  - if c != "meta"
    %table
      %tr
        %th.name
          %h2= articles.get_category_display_name(c)
        %th.lang Translations
      - articles.articles_by_category_en[c].each do |a|
        %tr
          %td.name
            %a{:href => a.url}
              = a.name
          %td.lang
            - if a.translations
              - a.translations.sort_by{|t| t.language}.each_with_index do |t, ii|
                %span{:style => "display: inline-block;"}
                  %a{:href => t.url}= t.language
                  &nbsp;
%p
  Want to add your favorite language to the list? Head on over to
  %a(href="https://github.com/adambard/learnxinyminutes-docs") Github
  and send a pull request!

%hr
%p
  All articles &copy; the original author and contributors, and licensed
  under a
  %a(href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US") CC BY-SA 3.0
  license.
%p(style="text-align: right")
  Made by
  %a(href="http://adambard.com/") Adam Bard, handsome web developer

